
bin_PROGRAMS = dxirc

dxirc_SOURCES = configdialog.cpp \
                  dxirc.cpp \
                  icons.cpp \
                  dxsocket.cpp \
                  ircengine.cpp \
                  dccengine.cpp \
                  dxtabitem.cpp \
                  irctabitem.cpp \
                  dcctabitem.cpp \
                  serverdialog.cpp \
                  dxutils.cpp \
                  aliasdialog.cpp \
                  dxpipe.cpp \
		  logthread.cpp \
                  logviewer.cpp \
                  tetristabitem.cpp \
                  scriptdialog.cpp \
                  dccdialog.cpp \
                  aboutdialog.cpp \
                  helpdialog.cpp \
                  dxtabbook.cpp \
                  dxtextfield.cpp \
                  dxtext.cpp \
                  dxmessagechannel.cpp \
                  fxext.cpp \
                  preferences.cpp \
                  keybindingsdialog.cpp

if HAVE_TRAY
dxirc_SOURCES += FXTrayApp.cpp \
                 FXTrayIcon.cpp
endif # HAVE_TRAY

dxirc_LDADD = @LIBINTL@

localedir = $(datadir)/locale

INCLUDES = -I. -I$(top_srcdir) -I$(top_srcdir)/intl
if PLATFORM_WIN32
DEFS += -DUNICODE \
                -DLOCALEDIR=\"./locale\" \
                -DDXIRC_DATADIR=\".\"
dxirc_LDADD += $(top_builddir)/win/resource.o
else
DEFS += -DLOCALEDIR=\"$(localedir)\" \
             -DDXIRC_DATADIR=\"$(datadir)/dxirc\"
endif # PLATFORM_WIN32

EXTRA_DIST =  configdialog.h \
              defs.h \
              dxirc.h \
              help.h \
              i18n.h \
              icons.h \
              dxsocket.h \
              ircengine.h \
              dccengine.h \
              dxtabitem.h \
              irctabitem.h \
              dcctabitem.h \
              serverdialog.h \
              dxutils.h \
              aliasdialog.h \
              dxpipe.h \
	      logthread.h \
              logviewer.h \
              tetristabitem.h \
              scriptdialog.h \
              dccdialog.h \
              aboutdialog.h \
              helpdialog.h \
              dxtabbook.h \
              dxtextfield.h \
              dxtext.h \
              dxmessagechannel.h \
              fxext.h \
              FXTrayApp.h \
              FXTrayIcon.h \
              preferences.h \
              keybindingsdialog.h

if PLATFORM_WIN32
LIBS += -lwinmm # for PlaySound
endif


